package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName("wm_material")
@Data
public class WmMaterial implements Serializable {

    private static final long serialVersionUID = 1L;
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //自媒体用户ID
    @TableField("user_id")
    private Integer userId;

    //图片地址
    @TableField("url")
    private String url;

    //素材类型
    @TableField("type")
    private short type;

    //是否收藏
    @TableField("is_collection")
    private short isCollection;

    //创建时间
    @TableField("created_time")
    private Date createdTime;


}
